<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      (function () {
        /*
        entries() 方法返回一个新的Array Iterator对象，该对象包含数组中每个索引的键/值对
      */
        const array1 = ['a', 'b', 'c'];
        const iterator1 = array1.entries();
        console.log(iterator1.next().value); //[0, 'a']
        console.log(iterator1.next().value); //[1, 'b']
      })();
    </script>
  </body>
</html>
